home *** CD-ROM | disk | FTP | other *** search
- Path: cocoa.brown.edu!sun22!mjw
- From: mjw@pobox.com
- Newsgroups: comp.lang.tcl,comp.unix.programmer,comp.unix.questions,comp.unix.shell,comp.lang.awk,comp.lang.c,comp.lang.perl.misc,comp.programming,comp.software-eng
- Subject: Appropriate Tools and Approach for Kill Application
- Date: Wed, 17 Apr 1996 00:39:21 -0400
- Organization: Brown University
- Message-ID: <Pine.SOL.3.91.960417003525.18392A-100000@sun22>
- NNTP-Posting-Host: sun22.engin.brown.edu
- Mime-Version: 1.0
- Content-Type: TEXT/PLAIN; charset=US-ASCII
- X-Sender: weissmj@sun22
-
- I am interested in writing a fancy program to kill processes and could use
- some advice on appropriate tools, languages, and approaches.
-
- I would like the program to function as follows:
-
- There will exist a command line switch to correspond to each process
- characterstic. A process characteristic will most likely be each of the
- fields displayed in a full process list (ps -ef on many systems.) Using
- these switches, a user will be able to specify one or more characteristics
- with the ability to use regular expressions. Also, where appropriate, he
- or she may include processes to be killed by using equalities/
- inequalities.
-
-
- i.e.
-
- kill -n x*
-
- would kill xterm, xrn, xmosaic, etc.
-
-
- kill -n x* -t >=5h2m
-
- would kill all processes beginning with lowercase x and which have been
- running at least than five hours and two minutes.
-
- These examples are provided to give a basic idea--I haven't worked out the
- syntax yet.
-
- Lastly, I would like the user to be able to specify criteria for EXCLUDING
- processes based on values for these same characteristics.
-
-
- Can you please help with the following questions:
-
- 1) What tools or languages would be best to use? C, Tcl, scripting langs,
- LEX & YACC, etc.
-
- 2) What are some good strategies and their pros and cons for implementing
- this functionality in different software forms i.e. script, program,
- combination, etc.
-
- 3) Are there any guidelines or tips for designing the syntax to jive with
- standard practice?
-
-
- Thanks so much for your help.
-
-
- Michael Weiss
-
-